/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};

/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {

/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId])
/******/ 			return installedModules[moduleId].exports;

/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			exports: {},
/******/ 			id: moduleId,
/******/ 			loaded: false
/******/ 		};

/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);

/******/ 		// Flag the module as loaded
/******/ 		module.loaded = true;

/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}


/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;

/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;

/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";

/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports, __webpack_require__) {

	'use strict';

	var express = __webpack_require__(1);
	var path = __webpack_require__(2);

	var app = express();

	// serve our static stuff like index.css
	// app.use(express.static(path.join(__dirname, 'public')));

	var ReactDOMServer = __webpack_require__(3);
	var React = __webpack_require__(4);
	var TestComponent = __webpack_require__(5);

	// send all requests to index.html so browserHistory works
	app.get('*', function (req, res) {
	    var text = ReactDOMServer.renderToString(React.createElement(TestComponent, null));
	    var html = "<!DOCTYPE html><html><head><meta charset='UTF-8'></head><body><div>" + text + "</div></body></html>";
	    res.setHeader("Content-Type", 'text/html;charset=utf-8');
	    console.log(html);
	    res.send(html);
	});

	var PORT = 8000;
	app.listen(PORT, function () {
	    console.log('Production Express server running at localhost:' + PORT);
	});

	// https://facebook.github.io/react/docs/react-dom-server.html#rendertostring

/***/ },
/* 1 */
/***/ function(module, exports) {

	module.exports = require("express");

/***/ },
/* 2 */
/***/ function(module, exports) {

	module.exports = require("path");

/***/ },
/* 3 */
/***/ function(module, exports) {

	module.exports = require("react-dom/server");

/***/ },
/* 4 */
/***/ function(module, exports) {

	module.exports = require("react");

/***/ },
/* 5 */
/***/ function(module, exports, __webpack_require__) {

	'use strict';

	var React = __webpack_require__(4);

	var TestComponent1 = React.createClass({
	    displayName: 'TestComponent1',
	    render: function render() {
	        return React.createElement(
	            'div',
	            null,
	            'renderTextFromServer1'
	        );
	    }
	});

	var TestComponent2 = React.createClass({
	    displayName: 'TestComponent2',
	    render: function render() {
	        return React.createElement(
	            'div',
	            null,
	            'renderTextFromServer2'
	        );
	    }
	});

	var TestComponent3 = React.createClass({
	    displayName: 'TestComponent3',
	    render: function render() {
	        return React.createElement(
	            'div',
	            null,
	            'renderTextFromServer3'
	        );
	    }
	});

	var TestComponent4 = React.createClass({
	    displayName: 'TestComponent4',
	    render: function render() {
	        return React.createElement(
	            'div',
	            null,
	            'renderTextFromServer4'
	        );
	    }
	});

	var TestComponent = React.createClass({
	    displayName: 'TestComponent',
	    render: function render() {
	        return React.createElement(
	            'div',
	            null,
	            React.createElement(TestComponent1, null),
	            React.createElement(TestComponent2, null),
	            React.createElement(TestComponent3, null),
	            React.createElement(TestComponent4, null)
	        );
	    }
	});

	module.exports = TestComponent;

/***/ }
/******/ ]);